package org.zpmis.domain.org.vo;

import lombok.Data;
import org.zpmis.domain.org.model.SysOrganization;

@Data
public class AllSysOrgVo {
    /**
     * 组织id
     */
    private Long id;
    /**
     * 上级部门id
     */
    private Long parentId;
    /**
     * 组织名称
     */
    private String orgName;
    /**
     * 是否 是顶级组织 0 否 1是
     */
    private Integer isParent;

    public AllSysOrgVo(SysOrganization sysOrganization){
        this.id = sysOrganization.getId();
        this.parentId = sysOrganization.getParentId();
        this.orgName = sysOrganization.getOrgName();
        this.isParent = sysOrganization.getIsParent();
    }

}
